
<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>: <#if isCategory>类型模型<#else>商品模型</#if> - <@s.m "global.add"/></div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form class="ropt">
                            <input type="hidden" value="${typeId!}" name="typeId">
                            <input id="isCategory" type="hidden" name="isCategory" value="${isCategory?string("true","false")}"/>
                            <input type="submit" value="<@s.m "global.backToList"/>" onclick="this.form.action='list.do';"/>
                        </form>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <@p.form id="baseForm" action="o_save.do" labelWidth="12">
                        <@p.text colspan="1" width="50" label="字段" name="field" required="true" class="required" maxlength="100"/>
                        <@p.text colspan="1" width="50" label="名称" name="propertyName"  required="true" class="required" maxlength="100"/><@p.tr/>
                        <@p.select colspan="1" width="50" label="数据类型" name="dataType" required="true" list={"1":"字符串文本","2":"整型文本","3":"浮点型文本","4":"文本区","5":"日期","6":"下拉列表","7":"复选框","8":"单选框"}/>
                        <@p.text colspan="1" width="50" label="排序" name="sort" value="70" required="true" class="required digits" maxlength="10"/><@p.tr/>
                        <@p.text colspan="2" label="默认值" name="defValue" maxlength="255" /><@p.tr/>
                        <@p.text colspan="2" label="可选项" name="optValue" size="70" maxlength="255" help="cmsModelItem.optValue.help"/><@p.tr/>
                        <@p.text colspan="1" width="50" label="行数" name="rows" value="3" class="digits" maxlength="3"/>
                        <@p.text colspan="1" width="50" label="列数" name="cols" value="30" class="digits" maxlength="3"/><@p.tr/>
                        <@p.td colspan="2">
                        <input type="hidden" name="typeId" value="${typeId}"/>
                        <input type="hidden" name="category" value="${isCategory?string("true","false")}"/>
                        <@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/>
                    </@p.td>
                </@p.form>
            </div>
    </div>


    </div>
    </div>



</body>
</html>